package com.example.demo.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

//添加注解
@ApiModel("用户信息") //具体实体类的注解
@Data
public class User {

    @ApiModelProperty("用户Id")
    private Long id;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("电话号码")
    private String phoneNum;

    @ApiModelProperty("邮箱地址")
    private String email;

    @ApiModelProperty("性别")
    private Byte gender;

    //敏感信息不应该在网络上传输，不提供到前端
    private String salt;

    @ApiModelProperty("头像地址")
    private String avatarUrl;

    @ApiModelProperty("发帖数")
    private Integer articleCount;

    @ApiModelProperty("是否管理员，0否，1是")
    private Byte isAdmin;

    @ApiModelProperty("个人简介")
    private String remark;

    @ApiModelProperty("状态，0正常，1禁言")
    private Byte state;

    @ApiModelProperty("删除状态，0正常，1删除")
    private Byte deleteState;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

}